import { BaseURL } from '@/consts/consts'
const filter = function(sketch) {
  let strRes = ''
  if (sketch.search('http') === -1) {
    strRes = BaseURL + '/' + sketch
  } else {
    strRes = sketch
  }
  return strRes
}
export default filter
